﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/Home.Master" AutoEventWireup="true" CodeBehind="Account.aspx.cs" Inherits="TTMarketing.Admin.Account" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMain" runat="server">
    <asp:Panel ID="Panel1" runat="server" Width="100%">
        <fieldset>
            <legend>Thông tin tài khoản khách hàng</legend>
            
            <table width="100%">
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName" runat="server" Text="Tên đăng nhập"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtUserName" Runat="server" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblPassword" runat="server" Text="Mật khẩu"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtPassword" Runat="server" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblFullName" runat="server" Text="Họ Tên"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtFullName" Runat="server" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblEmail" runat="server" Text="Email"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtEmail" Runat="server" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblPhone" runat="server" Text="Điện thoại"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtPhone" Runat="server" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblGender" runat="server" Text="Giới tính"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cmbGender" Runat="server">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Text="Nam" Value="1" />
                                <telerik:RadComboBoxItem runat="server" Text="Nữ" Value="0" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblBirthday" runat="server" Text="Ngày sinh"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadDatePicker ID="dpBirthday" Runat="server">
                        </telerik:RadDatePicker>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblAddress" runat="server" Text="Địa chỉ"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtAddress" Runat="server" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblStatus" runat="server" Text="Trang thái"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cmbStatus" Runat="server">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Owner="cmbStatus" Text="Hiện" 
                                    Value="Hiện" />
                                <telerik:RadComboBoxItem runat="server" Owner="cmbStatus" Text="Ẩn" 
                                    Value="Ẩn" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="Lưu" />
                        &nbsp;
                        <asp:Button ID="btnReset" runat="server" Text="Reset mật khẩu" />
                        &nbsp;
                        <asp:Button ID="btnClear" runat="server" Text="Clear" />
                    </td>
                </tr>
            </table>
            <br />
            <br />
            
        </fieldset>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" Width="100%">
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" 
            AllowSorting="True" DataSourceID="odsAccount" GridLines="None" 
            ShowFooter="True">
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView AutoGenerateColumns="False" DataSourceID="odsAccount">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Mã" 
                        SortExpression="Id" UniqueName="Id">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="UserName" HeaderText="Tên đăng nhập" 
                        SortExpression="UserName" UniqueName="UserName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FullName" HeaderText="Họ tên" 
                        SortExpression="FullName" UniqueName="FullName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Email" HeaderText="Email" 
                        SortExpression="Email" UniqueName="Email">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="Status" DataType="System.Boolean" 
                        HeaderText="Trạng thái" SortExpression="Status" UniqueName="Status">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridTemplateColumn HeaderText="Action" UniqueName="TemplateColumn">
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton1" runat="server" 
                                ImageUrl="~/Admin/Images/Button/Edit_Grid.gif" />
                            &nbsp;&nbsp;<asp:ImageButton ID="ImageButton2" runat="server" 
                                ImageUrl="~/Admin/Images/Button/Delete_Grid.gif" />
                            &nbsp;
                        </ItemTemplate>
                        <ItemStyle Width="40px" />
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <HeaderContextMenu EnableAutoScroll="True">
            </HeaderContextMenu>
        </telerik:RadGrid>
        <asp:ObjectDataSource ID="odsAccount" runat="server" SelectMethod="getAll" 
            TypeName="TTBusiness.clsBSAccount"></asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
